package com.atguigu.gulimail;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import java.io.File;
import java.util.Arrays;

@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients("com.atguigu.gulimail.member.feign")
public class GulimailMemberApplication {
    //
    public static void main(String[] args) {
        SpringApplication.run(GulimailMemberApplication.class, args);
    }

//
//    public static void main(String[] args) {
//        File file = new File("D:\\学习\\项目\\谷粒商城最新\\1.分布式基础篇\\视频");
//        File[] files = file.listFiles();
//        System.out.println(files.length);
//        Arrays.stream(files).map(File::getName).forEach(System.out::println);

//        String newname ;
//        for (File filename:files) {
//            newname=filename.getName().substring(0,5)+" "+filename.getName().substring(6);
//            filename.renameTo(new File("D:\\学习\\项目\\谷粒商城最新\\1.分布式基础篇\\视频",newname));
//            System.out.println(newname);
//        }
//        System.out.println(files);
//    }
}
